<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a th:href="@{/user/toAdd}">添加</a>
    <table border="1">
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>邮箱</td>
            <td>地址</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${page.list}">
            <td th:text="${user.getUid()}">ID</td>
            <td th:text="${user.getUname()}">姓名</td>
            <td th:text="${user.getAge()}">年龄</td>
            <td th:text="${user.getEmail()}">邮箱</td>
            <td th:text="${user.getAddress()}">地址</td>
            <td>
                <a th:href="@{/user/findByUid(uid=${user.getUid()})}">修改</a>
                <a th:href="@{/user/del(uid=${user.getUid()})}">删除</a>
            </td>
        </tr>
    </table>
    <a th:href="@{/user/findAll(pageNum=1)}">首页</a>
    <a th:href="@{/user/findAll(pageNum=${page.getPrePage()})}">上一页</a>
    <a th:href="@{/user/findAll(pageNum=${page.getNextPage()})}">下一页</a>
    <a th:href="@{/user/findAll(pageNum=${page.pages})}">尾页</a>
  /共<span th:text="${page.getPages()}"></span>页
    共<span th:text="${page.getTotal()}"></span>条数据
</body>
</html>